package com.example.nftapp.http;

import java.io.Serializable;

/**
 * 接收服务器返回数据的通用类
 */
public class HttpResponse<T> implements Serializable {
    private T data;
    private Integer errorCode;
    private String errorMsg;

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public Integer getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Integer errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
